

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Create Paquet</title>         
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list">Paquet List</g:link></span>
        </div>
        <!-- RichTextEditor resources like JavaScript libraries and CSS -->
        <resource:richTextEditor type="simple" />

        <div class="body">
            <h1>Create Paquet</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${paquetInstance}">
            <div class="errors">
                <g:renderErrors bean="${paquetInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post"  enctype="multipart/form-data">
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="name">Name:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:paquetInstance,field:'name','errors')}">
                                    <input type="text" id="name" name="name" value="${fieldValue(bean:paquetInstance,field:'name')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="description">Description:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:paquetInstance,field:'description','errors')}">
                                    <!--<input type="text" id="description" name="description" value="${fieldValue(bean:paquetInstance,field:'description')}"/>-->
                                    <richui:richTextEditor name="description" value="${fieldValue(bean:paquetInstance,field:'description')}" width="525" />
                                </td>
                            </tr> 
                        
                           
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="dateCreated">Date Created:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:paquetInstance,field:'dateCreated','errors')}">
                                    <g:datePicker name="dateCreated" value="${paquetInstance?.dateCreated}" precision="hour" ></g:datePicker>
                                </td>
                            </tr> 
                                                
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="keywords">Keywords:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:paquetInstance,field:'keywords','errors')}">
                                    <input type="text" id="keywords" name="keywords" value="${fieldValue(bean:paquetInstance,field:'keywords')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="lang">Lang:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:paquetInstance,field:'lang','errors')}">
                                    <input type="text" id="lang" name="lang" value="${fieldValue(bean:paquetInstance,field:'lang')}"/>
                                </td>
                            </tr>

                        <tr class="prop">
                                <td valign="top" class="role">
                                    <label for="groups">Groups:</label>
                                </td>
                                <td valign="top" class="">
                                    <g:select name="role" from="${Role.list()}" value="${authority}" optionKey="id" multiple="multiple"/>
                                    ${select(from:Role.list(),value:authority)}

                                </td>
                        </tr>
                        
                          <tr class="prop">
                            <td valign="top" class="name">
                                <label for="content">Content:</label>
                            </td>
                            <td valign="top" class="value ${hasErrors(bean:paquetInstance,field:'content','errors')}">
                                <input type="file" id="content" name="content" />
                            </td>
                        </tr>

                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><input class="save" type="submit" value="Create" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
